#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using  std::cout;
using  std::endl;
#include"List.h"
#include"myvector.h"
//#include<vector>
//using namespace std;


//int main() {
	//jxh::test1();
	//const vector<int>v;
	///*v.push_back(10);
	//v.push_back(10);
	//v.push_back(10);
	//v.push_back(10);*/
	//for (auto e : v) {
	//	cout << e << ' ';
	//}

//	return 0;
//}
using namespace jxh;
	int main() {
		list<int> l1;
		
		l1.push_back(1);
		l1.push_back(2);
		l1.push_back(3);
		l1.push_back(4);
		l1.push_back(5);
	
		list<int>::reverse_iterator it = l1.rbegin();
		while (it != l1.rend()) {
			std::cout << *it << ' ';
			++it;
		}

		return 0;
	}
